﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using Blade.IO;

namespace Blade.Metadata.CliLoader {
	public struct RVA {
		public RVA(BinaryReader reader) {
			Value = reader.ReadUInt32();
		}

		public readonly uint Value;

		public override string ToString() {
			return string.Format("0x{0:X8}", Value);
		}

		public static bool operator ==(RVA a, uint b) {
			return a.Value == b;
		}

		public static bool operator !=(RVA a, uint b) {
			return !(a == b);
		}
	}
}
